package com.ruihu.admin.constant;

public class RedisConstants {

    public static final int DEFAULT_REDIS_TIMEOUT = 30 * 60;

    public static final String ELECTRIC_CONFIG_CODE_PREFIX = "ELECTRIC_CONFIG_CODE#";

    public static final String CELL_TYPE_CONFIG_CODE_PREFIX = "CELL_TYPE_CONFIG_CODE#";

    public static final String FACTORY_CONFIG_CODE_PREFIX = "FACTORY_CONFIG_CODE#";

    public static String queryElectricConfigByCodeKey(String code) {
        return ELECTRIC_CONFIG_CODE_PREFIX + code;
    }

    public static String queryCellTypeConfigByCodeKey(String code) {
        return CELL_TYPE_CONFIG_CODE_PREFIX + code;
    }

    public static String queryFactoryConfigByCodeKey(String code) {
        return FACTORY_CONFIG_CODE_PREFIX + code;
    }

}
